package cn.laiguowei.May3.MD5Signature.configuration;

import cn.laiguowei.May3.MD5Signature.interceptor.InterfaceInvokeInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


/**
* @author laiguowei E-mail:1276293854@qq.com   2021年4月30日 下午4:35:55
*/

@Configuration
public class WebAppConfigurer  implements WebMvcConfigurer {
	
	@Autowired
	InterfaceInvokeInterceptor interfaceInvokeInterceptor;

	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(interfaceInvokeInterceptor).addPathPatterns("/aes");
	}
}

